package cn.edu.jxau.test;

import java.io.IOException;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) throws IOException {
		
		System.out.println(checkDifferent("aeiou"));
		System.out.println(checkDifferent("BarackObama"));
	}

	public static boolean checkDifferent(String iniString) {

		char[] arr = iniString.toCharArray();
		Arrays.sort(arr);
		for(int i=0;i<arr.length-1;i++) {
			if(arr[i]==arr[i+1]) {
				return false;
			}
		}
		return true;
	}
}